import Vue from 'vue'
import Router from 'vue-router'
import Goods from '@/view/Goods'
import Detail from '@/view/Detail'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Goods',
      component: Goods
    },
		{
		  path: '/detail/:id',
		  name: 'Detail',
		  component: Detail
		}
  ]
})
